<div ng-controller="NotifyCtrl" ng-init="addAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/notify/list">{{'通知'| translate}}</a></li>
        <li class="active">
            {{notify.notify_id?"编辑":"创建"|translate}}
        </li>
    </ul>
    <form name="xform" novalidate ng-submit="save()">
        <div class="control-group">
            <label class="control-label v-top">{{'是否跳转'|translate}}：</label>
            <div class="controls">
                <jump-type ng-model="notify.jump" dft="1"></jump-type>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'显示范围'|translate}}：</label>
            <div class="controls">
                <notify-type ng-model="notify.type_id" dft="1"></notify-type>
            </div>
        </div>
        <div class="control-group" ng-show="notify.type_id!=1">
            <label class="control-label v-top">{{'门店id'|translate}}：</label>
            <div class="controls">
                <input type="number" placeholder="{{'门店数字ID'|translate}}" ng-model="notify.store_id" required>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'开始时间'|translate}}：</label>
            <div class="controls">
                <input placeholder="{{'start time'|translate}}" datetimepicker ng-model="notify.start_at" required>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'结束时间'|translate}}：</label>
            <div class="controls">
                <input placeholder="{{'end time'|translate}}" datetimepicker min-date="{{notify.start_at}}" ng-model="notify.end_at" required>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'通知内容'|translate}}：</label>
            <div class="controls">
                <textarea ng-model="notify.content" class="input-xlarge" style="width: 500px;height: 100px;" required></textarea>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button type="submit" class="sui-btn btn-primary" ng-disabled="!xform.$valid">
                    {{'save' | translate}}
                </button>
            </div>
        </div>
    </form>
</div>
